from django.conf.urls import url


from . import views


urlpatterns = [
    # 结算
    url(r'^orders/settlement/$', views.OrderSettlementView.as_view()),
    url(r'^orders/$', views.CommitOrderView.as_view()),
    # 评论页面展示
    url('^orders/(?P<order_id>\d+)/uncommentgoods/$', views.CommentGoodsView.as_view()),
    # 保存评论
    url('^orders/(?P<order_id>\d+)/comments/$', views.CommitCommentView.as_view()),
    # 展示评论
    url('^skus/(?P<sku_id>\d+)/comments/$', views.ReadCommentView.as_view()),

    # 全部订单
    url(r'^getorders/$', views.ListOrderView.as_view()),
]
